package org.keyroy.map.core;

import org.keyroy.util.tag.XmlObject;

public abstract class MapOverlay extends XmlObject {
	protected Map map;
	protected boolean visibility = true;

	public MapOverlay() {
	}

	public MapOverlay(Map map) {
		setMap(map);
	}

	public final Map getMap() {
		return map;
	}

	public void setMap(Map map) {
		this.map = map;
		init(map);
	}

	protected abstract void init(Map map);

	public final void setVisibility(boolean visibility) {
		this.visibility = visibility;
	}

	public final boolean isVisibility() {
		return visibility;
	}

}
